CommandInsertTrafficLight Class Reference

#include <CommandInsertTrafficLight.h>

Inheritance diagram for CommandInsertTrafficLight:

Command List of all members.

Public Member Functions

 CommandInsertTrafficLight (osg::Vec3 pos, OSGWindows *osgwind, TrafficLightTypes newType, TrafficLightColor newColor, TrafficLightColor newArrowColor)
bool execute ()
bool unexecute ()

Private Attributes

OSGWindows * osgwind_
TrafficLight * light
vector< TraffEduObject * > insertedObjs_

Constructor & Destructor Documentation

CommandInsertTrafficLight::CommandInsertTrafficLight (  osg::Vec3  pos,
OSGWindows *  osgwind,
TrafficLightTypes  newType,
TrafficLightColor  newColor,
TrafficLightColor  newArrowColor
) 
 

A constructor. Initializes osgwind_ and creates a new traffic light object by using the given parameters.

Parameters:
pos a osg::Vec3 variable.
osgwind an OSGWindows pointer.
newType a TrafficLightTypes argument.
newColor a TrafficLightColor argument.
newArrowColor a TrafficLightColor argument.


Member Function Documentation

bool CommandInsertTrafficLight::execute (   )  [virtual]
 

do the insertion of traffic light object operation.

Returns:
Operation success

Implements Command.

bool CommandInsertTrafficLight::unexecute (   )  [virtual]
 

undo the insertion of traffic light object operation.

Returns:
Operation success

Implements Command.


Member Data Documentation

vector<TraffEduObject*> CommandInsertTrafficLight::insertedObjs_ [private]
 

a private vector of TraffEduObjects. It holds the inserted traffic light objects.

TrafficLight* CommandInsertTrafficLight::light [private]
 

a private variable. It is used to hold the created traffic light object.

OSGWindows* CommandInsertTrafficLight::osgwind_ [private]
 

a private variable. It is initialized with the unique OSGWindows instance.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO